package com.dmzapp.api.vo;

import java.util.Date;

public class OutRecord implements Comparable<OutRecord> {

    private String username;
    private String mac;
    private String deviceid;
    private String ip;
    private String amount;
    private Date create_time;
    private String type; // qq,phone,alipay,cash
    private String target;
    private String status;
    
    @Override
    public int compareTo(OutRecord arg0) {
        if (arg0.create_time.getTime() < this.create_time.getTime()) {
            return -1;
        } else {
            return 1;
        }
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
